<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>

<body>
<form action="/user/userLogin" method="post">
    <table>
        <tr>
            <td>账号：</td>
            <td><input type="text" name="account"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="text" name="password"></td>

        </tr>
        <tr>
            <td>验证码：</td>
            <td><input type="text" name="code"></td>
            <td>
                <a href="javascript:getVerifiCode()">
                    <img id="yzm_img" style="cursor:pointer;width: 100px;height: 36px;margin: 5px 0 0 5px;border-radius: 3px;" title="点击刷新验证码" src="getVerifiCode"/>
                </a>
            </td>
        </tr>
        <tr>
            <td><input type="submit"  value="提交"></td>
        </tr>
    </table>
</form>
</body>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="layui/layui.all.js"></script>
<script>
    function getVerifiCode() {
        $("#yzm_img").prop('src','getVerifiCode?a='+new Date().getTime());
    }
</script>
</html>